#ifndef REGISTERWINDOW_H
#define REGISTERWINDOW_H

#include <QWidget>
#include <QTcpSocket>
#include "SocketManager.h"
#include <QJsonDocument>
#include <QJsonObject>
#include "protocol.h"
#include <QByteArray>
#include <QMessageBox>
#include <QDebug>

class LoginWindow;

namespace Ui {
class RegisterWindow;
}

class RegisterWindow : public QWidget
{
    Q_OBJECT

    //QTcpSocket* getsocket();

public:
    RegisterWindow(LoginWindow *loginwindow,QWidget *parent = nullptr);
    ~RegisterWindow();

private slots:
    void on_pushButton_clicked();

    void handleRegisterResponse(QJsonObject obj);

    //void handleTORead();

    void on_pushButton_2_clicked();

private:
    Ui::RegisterWindow *ui;
    LoginWindow* login;
};

#endif // REGISTERWINDOW_H
